<!-- 
 - AnalystHomepage.php
 - v1.0
 - 2/10/2011
 - 
 - This file presents the user interface for the analyst. 
 -->
<?php 
	session_start();
	require 'libraries/ViewAnalysisLib.php';
	require 'libraries/UserLibrary.php';

	isSessionSet("analyst", null, "index.php")
?>
<html>
	<head>
		<title>CASLIMS | Analyst</title>
		<script type="text/javascript" src="scripts/validateAnalyst.js"></script>
		<link rel="stylesheet" type="text/css" href="scripts/page.css"/>
		<link href="tools/favicon.ico" rel="shortcut icon" type="image/x-icon" /> 
	</head>
	<body>
		<div id="header"></div>
		<div id="wrapper">
			<div id="pagetop">
				<div class="greeting">Hi, <?php echo $_SESSION["analyst"];?> | <a href="Logout.php">Log out</a></div>
				<div class="homepage"><?php echo $_SESSION["analyst"];?></div>
			</div>
			<table id="analysisTable" border="0" width="100%">
				<thead>
					<tr>
						<th>CASL Number</th>
						<th>Analyst</th>
						<th>Analysis Required</th>
						<th>Date of Analysis</th>
					</tr>
				</thead>			
			<?php
				DisplayLimitedAnalysis($_SESSION["analyst"],"casl","localhost","login","login");	
			?>
			</table>
			<div id="footerwrap">
				<div id="footer"> 
					<div class="copyright">Copyright 2011.<a>CASL BIOTECH-UPLB.</a> All Rights Reserved.<br/> 
				Arianne Buse&ntilde;os | Darlene Joy Masong | Rick Jason Obrero | Jonathan Pandi | Jonathan Simbahan | Emmanuel Soriano 
					</div> 
    	    	</div>
			</div>		
		</div>
	</body>
</html>
